<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
        <?php include VIEWPATH . 'mobile/head.php'; ?>
    </head>
    <body>
        <div id="head">
            <div id="headinner">
                <div id="logo">
                    <a href="/mobile/user/" class="ajax"><img src="<?= $config['res_url'] ?>/images/logo.png" alt="" /></a>
                </div>
                <div id="nav" style="float:right;">
                    <?php if (check_login()) { ?>
                        <ul class="ajax">
                            <li><a href="/mobile/user/" title="首页">首页</a></li>
                            <li><a href="/mobile/bill/add" title="记账">记账</a></li>
                            <li><a href="/mobile/bill/" title="明细">明细</a></li>
                            <!--<li><a href="/mobile/diary/" title="日记">日记</a></li>
                            <li><a href="/mobile/bbs/" title="论坛">论坛</a></li>
                            <li><a href="/mobile/note/" title="私信">私信</a></li>-->
                            <li><a href="/mobile/user/logout/" title="退出">注销</a></li>
                        </ul>
                    <?php } ?>
                </div>
            </div>
        </div>
        <div id="loading"><b></b><em>加载中...</em></div>
        <div id="main" class="clear">
            <div id="primary" class="clear">
                <?php include VIEWPATH . "{$module}.php"; ?>
                <div class="clear"></div>
            </div>
        </div>
        <?php include VIEWPATH . "mobile/foot.php"; ?>
    </body>
</html>